home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / wiggi_wa.swf / scripts / DefineSprite_188 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  645 b   |  36 lines

  1. function onRelease()
  2. {
  3.    _alpha = 100;
  4.    if(this._rotation > 0)
  5.    {
  6.       _parent._parent.STAGE[dressVal]++;
  7.    }
  8.    else
  9.    {
  10.       _parent._parent.STAGE[dressVal]--;
  11.    }
  12.    if(_parent._parent.STAGE[dressVal] < 1)
  13.    {
  14.       _parent._parent.STAGE[dressVal] = range;
  15.    }
  16.    else if(_parent._parent.STAGE[dressVal] > range)
  17.    {
  18.       _parent._parent.STAGE[dressVal] = 1;
  19.    }
  20.    _parent.HERO.play();
  21.    _parent._parent.saveAllData();
  22. }
  23. function onRollOver()
  24. {
  25.    _alpha = 100;
  26. }
  27. function onEnterFrame()
  28. {
  29.    if(_alpha > 50)
  30.    {
  31.       _alpha = _alpha - 2;
  32.    }
  33. }
  34. scale = _xscale;
  35. rotateStore = _rotation;
  36.